package com.wind.base.mvp.view;

import android.app.Activity;

import com.wind.base.dialog.LoadingDialogHelper;
import com.wind.toastlib.ToastUtil;

public abstract class AbsLayout {

    protected Activity mActivity;
    public AbsLayout(Activity activity){
        this.mActivity=activity;
    }
    public void showOpLoadingIndicator() {
        LoadingDialogHelper.showOpLoading(mActivity);
    }

    public void hideOpLoadingIndicator() {
        LoadingDialogHelper.hideOpLoading();
    }

    public void showError(String msg) {
        ToastUtil.showToast(mActivity,msg);
        hideOpLoadingIndicator();
    }

    public abstract void onDestroy();


}
